import Home from '../pages/home'
import Detail from '../pages/detail'
import Login from '../pages/login'
import Search from '../pages/search'

import BookShop from '../pages/home/bookShop'
import BookColl from '../pages/home/bookColl'
import My from '../pages/home/my'
const routes = [{
	path: '/home',
	component: Home,
	children: [{
		path: '/home/bookshop',
		component: BookShop,
		title: '书城'
	},{
		path: '/home/bookColl',
		component: BookColl,
		title: '书架'
	},{
		path: '/home/my',
		component: My,
		title: '我的'
	}]
},{
	path: '/login',
	component: Login
},{
	path: '/detail',
	component: Detail
},{
	path: '/search',
	component: Search
},{
	from: '/',
	to: '/home/bookshop'
}]

export default routes